package com.urbanski.util;

import java.util.Comparator;

/**
 * This class will sort Comparable elements in reverse of their natural order.
 *
 * @param <E> must implement Comparable, either explicitly or implicitly
 */
public class ReverseSortComparator<E extends Comparable<? super E>> implements Comparator<E>
{
	@Override
	public int compare(E a, E b)
	{
		return b.compareTo(a);
	}
}
